package com.dao;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.model.Membership;
import com.model.MembershipPayment;

public class MembershipPaymentDAO extends GenericDAO<MembershipPayment> {

	private static final long serialVersionUID = 1L;

	public MembershipPaymentDAO() {
		super(MembershipPayment.class);
	}
	
	public List<MembershipPayment> listActive () {
		Map<String, Object> parameters = new HashMap<String, Object>();
		parameters.put("active", true);

		return super.findManyResult(MembershipPayment.FIND_MEMBERSHIPPAYMENT_BY_STATUS, parameters);
	}
	
	public List<MembershipPayment> search(Map<String, Object> parameters){
		return super.findManyResult(MembershipPayment.SEARCH, parameters);
	}	
	
}
